import Layout from '@/layout'
export default {
  path: '/employees',
  name: 'employees',

  component: Layout,
  // 嵌套子路由
  children: [
    {
      path: '',
      component: () => import('@/views/employees/index'),
      // 设定在菜单中显示的标题和图标
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'detail/:id',
      hidden: true,
      component: () => import('@/views/employees/detail'),
      // 设定在菜单中显示的标题和图标
      meta: { title: '员工详细', icon: 'people' }
    },
    {
      path: 'print/:id',
      hidden: true,
      component: () => import('@/views/employees/print')

    }
  ]
}
